#ifndef LOSESTATE_H
#define LOSESTATE_H

#include <SDL.h>
#include "CGameState.h"
#include "CImage.h"

class LoseState : public CGameState
{
    public:

    void init();
    void cleanup();

    void pause();
    void resume();

    void handleEvents(CGame* game);
    void update(CGame* game);
    void draw(CGame* game);

    // Implement Singleton Pattern
    static LoseState* instance()
    {
        return &m_LoseState;
    }

    protected:

    LoseState() {}

    private:

    static LoseState m_LoseState;
    bool firstLoad;

    CImage* loseSprite;
    CFont*  loseFont;

    // controle de audio
    irrklang::ISoundEngine* audio;
    irrklang::ISoundSource* loseTheme;
};

#endif // LOSESTATE_H
